<?php

class View_Helper_Img extends Zend_View_Helper_Abstract
{
	// TODO: Change style to a options array and add alt text 
	function img($path, $style = null) 
	{
		$imagepath = $this->view->baseUrl() . ltrim($path, '/');
		if ($style) {
			return '<img src="'.$imagepath.'" style="'.$style.'" alt=""/>';
		}
		return '<img src="'.$imagepath.'" alt=""/>';
	}
	
}